<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String userid = "";
if (request.getAttribute("userid") != null) {
	userid = request.getAttribute("userid").toString();
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>档案表</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link id="bootstrap-style" href="<c:url value="/css/bootstrap.min.css"/>" rel="stylesheet">
	<link href="<c:url value="/css/bootstrap-responsive.min.css"/>" rel="stylesheet">
	<link id="base-style" href="<c:url value="/css/style.css"/>" rel="stylesheet">
	<link id="base-style-responsive" href="<c:url value="/css/style-responsive.css"/>" rel="stylesheet">
	<link href="<c:url value="/css/index.css"/>" rel="stylesheet">
	<link rel="shortcut icon" href="<c:url value="/img/favicon.ico"/>">
	<link href="<c:url value="/css/page.css"/>" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/jquery.datetimepicker.css"/>"/>
	<link href="<c:url value="/css/navuser.css"/>" rel="stylesheet">
	<link href="<c:url value="/css/but.css"/>" rel="stylesheet">
	<script src="<c:url value="/js/jquery-1.9.1.min.js"/>"></script>
	<script src="<c:url value="/js/jquery-migrate-1.0.0.min.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/js/layer/layer.js"/>"></script>
	<script src="<c:url value="/js/laydate/laydate.js"/>"></script>
	<script src="<c:url value="/js/build/jquery.datetimepicker.full.js"/>"></script>
	<script src="<c:url value="/js/orgin.js"/>"></script>
	<script src="<c:url value="/js/filebut.js"/>"></script>
</head>
 <script type="text/javascript">
 function reback(){
     var url='<%=basePath%>user/index';
     parent.$("#mainFrame").attr("src",url);
 }
 function update(){
     var formData = new FormData($("#userform")[0]);
     if($("#mobile").val() == null || $("#mobile").val() == ""){
    	 alert("手机号不能为空");
    	 return;
     }
     //if($("#idcard").val() == null || $("#idcard").val() == ""){
    //	 alert("身份证号不能为空");
    //	 return;
    // }
     if($("#endtime").val()<$("#starttime").val()){
    	 alert("工作经历结束时间小于开始时间");
    	 return;
     }
     if($("#mobile").val() == $("#rmobile").val()){
    	 alert("手机号与紧急联系人电话不能相同");
    	 return;
     }
     $.ajax({  
          url: '<%=basePath%>user/update',
          type: 'POST',  
          data: formData,  
          async: false,  
          cache: false,
          contentType: false,  
          processData: false,  
          success: function (result) {
                if("ok"==result){
                    alert("修改员工成功");
                    var url='<%=basePath%>user/index';
                    parent.$("#mainFrame").attr("src",url);
                }else if("no"==result){
                    alert("修改员工失败");
                }else if("mobileExist"==result){
                	alert("手机号码已注册或上家公司未离职");
                }else if("nosche" == result){
                	alert("商户未排班");
                }else if("idcardExist" == result){
                	alert("身份证号码已注册或上家公司未离职");
                }
          }
     });
 }
 
function lookimg(path){
    layer.open({
		title: '图片',
       type: 2,
       area: ['800px', '560px'],
       fixed: false, //不固定
       maxmin: true,
       content: '<%=basePath%>user/imgmain?path='+path
     });
}
var eduInt = 0;
//添加毕业信息栏
function addEducation(){
	 var addEduDivSize = $(".addEduDiv").size();
	 if(addEduDivSize > 3){
		 alert("最多填写4条");
		 return;
	 }
	 eduInt --;
	 var html = "<div class='addEduDiv'>"
		+"<div style='width:33%;float:left;'>"
		+"<span>毕业时间</span>"
		+"<input type='date' class='demo-input' name='graduationtime"+eduInt+"'>"
		+"</div>"
		+"<div style='width:33%;float:left;'>"
		+"<span>毕业院校</span>"
		+"<input type='text' name='universitie"+eduInt+"' placeholder='请输入' >"
		+"</div>"
		+"<div style='width:33%;float:left;'>"
		+"<span>毕业专业</span>"
		+"<input type='text' name='major"+eduInt+"' placeholder='请输入' >"
		+"</div>"
		+"</div>"
		+"<div>"
		+"<div style='width:23%;float:left;'>"
		+"<span>毕业证书编号</span>"
		+"<input type='text' name='educationNum"+eduInt+"' placeholder='请输入' >"
		+"</div>"
		+"	<div style='width:10%;float:left;'>"
		+"<div class='filebut'>"
		+"<a class='input-file input-fileup' id='buteducation"+eduInt+"' href='javascript:;'>"
		+"+ 上传照片<input size='100' type='file' name='educationfile"+eduInt+"' id='educationfile"+eduInt+"'>"
		+"</a>"
		+"</div>"
		+"</div>"
		+"<div style='width:53%;'>"
		+"<div><label></label></div>"	
		+"<div class='fileerrorTip_education"+eduInt+"'></div>"	
		+"<div class='showFileName_education"+eduInt+"' ></div>"
		+"</div>"
		+"</div>"
		+"<div>"
		+"<div style='width:23%;'>"
		+"<span>学位证书编号</span>"
		+"<input type='text' name='academicdegreeNum"+eduInt+"' placeholder='请输入' >"
		+"</div>"
		+"<div style='width:10%;float:left;margin-left: 327px;margin-top: -40px;'>"
		+"<div class='filebut'>"
		+"<a class='input-file input-fileup' id='butacademicdegree"+eduInt+"' href='javascript:;'>"
		+"+ 上传照片<input size='100' type='file' name='academicdegreefile"+eduInt+"' id='academicdegreefile"+eduInt+"'>"
		+"</a>"
		+"</div>"
		+"</div>"
		+"<div style='width:53%;'>"
		+"<div class='fileerrorTip_academicdegree"+eduInt+"'></div>"
		+"<div class='showFileName_academicdegree"+eduInt+"' style='margin-left: 467px;margin-top: -40px;float: left;'></div>"
		+"</div>"
		+"</div>";
	 	$("#JKDiv_2").append(html);
	 	$("#buteducation-1").on("change","input[type='file']",function(){
	        var filePath=$(this).val();
	        $(".fileerrorTip_education-1").html("").hide();
	        var arr=filePath.split('\\');
	        var fileName=arr[arr.length-1];
	        $(".showFileName_education-1").html(fileName);
	    })
	    $("#butacademicdegree-1").on("change","input[type='file']",function(){
	        var filePath=$(this).val();
	        $(".fileerrorTip_academicdegree-1").html("").hide();
	        var arr=filePath.split('\\');
	        var fileName=arr[arr.length-1];
	        $(".showFileName_academicdegree-1").html(fileName);
	    })
	    $("#buteducation-2").on("change","input[type='file']",function(){
	        var filePath=$(this).val();
	        $(".fileerrorTip_education-2").html("").hide();
	        var arr=filePath.split('\\');
	        var fileName=arr[arr.length-1];
	        $(".showFileName_education-2").html(fileName);
	    })
	    $("#butacademicdegree-2").on("change","input[type='file']",function(){
	        var filePath=$(this).val();
	        $(".fileerrorTip_academicdegree-2").html("").hide();
	        var arr=filePath.split('\\');
	        var fileName=arr[arr.length-1];
	        $(".showFileName_academicdegree-2").html(fileName);
	    })
	    $("#buteducation-3").on("change","input[type='file']",function(){
	        var filePath=$(this).val();
	        $(".fileerrorTip_education-3").html("").hide();
	        var arr=filePath.split('\\');
	        var fileName=arr[arr.length-1];
	        $(".showFileName_education-3").html(fileName);
	    })
	    $("#butacademicdegree-3").on("change","input[type='file']",function(){
	        var filePath=$(this).val();
	        $(".fileerrorTip_academicdegree3").html("").hide();
	        var arr=filePath.split('\\');
	        var fileName=arr[arr.length-1];
	        $(".showFileName_academicdegree-3").html(fileName);
	    })
}
 function xiugai(id) {
     layer.open({
	   title: '修改人员档案',
       type: 2,
       area: ['800px', '560px'],
       fixed: true, //不固定
       maxmin: true,
       content: '<%=basePath%>user/update?id='+id
     });
 }
 function xinzeng() {
     layer.open({
		title: '新增员工',
       type: 2,
       area: ['800px', '660px'],
       fixed: false, //不固定
       maxmin: true,
       content: '<%=basePath%>user/addUsermain'
     });
 }
 $(function(){
	 laydate.render({
		  elem: '#graduationtime'
		  ,type: 'date'
		  ,format: 'yyyy-MM-dd'
		});
	 laydate.render({
		  elem: '#datebirth'
		  ,type: 'date'
		  ,format: 'yyyy-MM-dd'
		});
	 laydate.render({
		  elem: '#endtime'
		  ,type: 'month'
		  ,format: 'yyyy-MM-dd'
		});
	 laydate.render({
		  elem: '#starttime'
		  ,type: 'month'
		  ,format: 'yyyy-MM-dd'
		});
 });
 function ChangeDiv(divId,divName,zDivCount) { 
		for(i=0;i<=zDivCount;i++) 	{ 
			document.getElementById(divName+i).style.display="none"; 
			//将所有的层都隐藏 
		} 
		document.getElementById(divName+divId).style.display="block"; 
		//显示当前层 
}
 
 </script>
<body>
	
			
			<input type="hidden" id="nationsel" name="nationsel" value="${user.nation}"> 
			<input type="hidden" id="dept" name="dept" value="${dept}"> 
			<div id="content" class="span10" style="width: 82%;background-color:#F9F9F9;">
				<div style="background-color:#FFF;height: 981px">
				<div style="margin-top:-10px;margin-top:-10px;margin-bottom:20px;margin-left:20px;margin-right:20px;padding-top:20px;">
					<span style="color:#37c2c2">修改员工</span><button style="float:right;" class="but butreturn" type="button" id="select" onclick="reback();">返回</button>
				</div>
				<form name="userform" id="userform">
				
				<div style="margin-left:20px;">
									<input type="hidden" id="jobnumber" name="jobnumber" value="${user.jobnumber}"> 
					      员工工号：<input type="text" id="jobnumber1" name="jobnumber1" value="${user.jobnumber }" disabled="disabled">
				</div>
				<div id="nav">
					<ul style="width: 100%;">
						<li><a onclick="JavaScript:ChangeDiv('0','JKDiv_',5)" style="cursor:hand;">员工基本信息</a> </li>
						<li><a onclick="JavaScript:ChangeDiv('1','JKDiv_',5)" style="cursor:hand;">资料上传</a> </li>
						<li><a onclick="JavaScript:ChangeDiv('2','JKDiv_',5)" style="cursor:hand;">员工学历信息</a> </li>
						<li><a onclick="JavaScript:ChangeDiv('3','JKDiv_',5)" style="cursor:hand;">员工工作经历</a> </li>
						<li><a onclick="JavaScript:ChangeDiv('4','JKDiv_',5)" style="cursor:hand;">员工紧急联系人信息</a></li>
						<li><a onclick="JavaScript:ChangeDiv('5','JKDiv_',5)" style="cursor:hand;">员工私密信息</a> </li>
					</ul>
					<div style="clear:both"></div>
				</div>
					<input type="hidden" id="userid" name="userid" value="${user.id}">
					<div id="JKDiv_0" style="font-size:14px;margin:20px;">
						<div>
							<div style="width:33%;float:left;">
								<span>姓名：</span>
								<input type="text" id="name" name="name" value="${user.name}" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>性别：</span>
								<c:if test="${user.sex == 1}"> &nbsp;
									<input type="radio" id="sex" name="sex" value="1" checked="checked"/><span>男</span> &nbsp;
									<input type="radio" id="sex" name="sex" value="2"/><span>女</span>
								</c:if>
								<c:if test="${user.sex == 2}">
									<input type="radio" id="sex" name="sex" value="1"/><span>男</span>
									<input type="radio" id="sex" name="sex" value="2" checked="checked"/><span>女</span>
								</c:if>
								
							</div>
							<div style="width:33%;float:left;">
								<span>出生日期：</span>
								<input type="text" class="demo-input" value="${datebirth}" placeholder="请选择时间" id="datebirth" name="datebirth">
								
							</div>
						</div>
						<div style="width:33%;float:left;">
								<span>手机：</span>
								<input type="text" id="mobile" name="mobile" value="${user.mobile }" placeholder="请输入" >
							</div>
						<div>
							<div style="width:33%;float:left;">
								<span>籍贯：</span>
								<input type="text" id="origin" name="origin" value="${user.origin}" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>民族：</span>
								<select name="nation" id="nation">
                                </select>

							</div>
							<div style="width:33%;float:left;">
								<span>政治面貌：</span>
								<select id="politicalstatus" name="politicalstatus">
                                    <option value="中共党员" <c:if test="${user.politicalstatus == '中共党员'}">selected</c:if>>中共党员</option>
                                    <option value="共青团员" <c:if test="${user.politicalstatus == '共青团员'}">selected</c:if>>共青团员</option>
                                    <option value="群众" <c:if test="${user.politicalstatus == '群众'}">selected</c:if>>群众</option>
                                    <option value="其他" <c:if test="${user.politicalstatus == '其他'}">selected</c:if>>其他</option>
								</select>
							</div>
						</div>
						<div>
							<div style="width:33%;float:left;">
								<span>语言：</span>
								<input type="hidden" value="${user.language}" id="meidaHidden"> 
								<input type="checkbox" value="1" name="language">普通话 &nbsp;
								<input type="checkbox" value="2" name="language">英语   &nbsp;
								<input type="checkbox" value="3" name="language">粤语  &nbsp;
								<input type="checkbox" value="4" name="language">其他  &nbsp;
							</div>
							<div style="width:33%;float:left;">
								<span>特长：</span>
								<input type="text" id="speciality" name="speciality" value="${user.speciality}" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>最高学历：</span>
								<select id="highesteducation" name="highesteducation" value="${user.highesteducation}">
									   <option value="${user.highesteducation}" selected>${user.highesteducation}</option>

								</select>
							</div>
						</div>
						<div>
							<div style="width:33%;float:left;">
								<span>专业：</span>
								<input type="text" id="professional" name="professional" value="${user.professional}" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>身份证号码：</span>
								<input type="text" id="idcard" name="idcard" value="${user.idcard}" placeholder="请输入" >
								
							</div>
							<div style="width:33%;float:left;">
								<span>婚姻情况：</span>
								<select id="maritalstatus" name="maritalstatus">
									<option value="1"<c:if test="${user.maritalstatus == 1}">selected</c:if>>已婚</option>
                                    <option value="2"<c:if test="${user.maritalstatus == 2}">selected</c:if>>未婚</option>

								</select>
							</div>
						</div>
						<div>
							<div style="width:33%;float:left;">
								<span>身高：</span>
								<input type="text" id="height" name="height" value="${user.height }" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>体重：</span>
								<input type="text" id="weight" name="weight" value="${user.weight }" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>视力：</span>
								<input type="text" id="vision" name="vision" value="${user.vision }" placeholder="请输入" >
							</div>
						</div>
						<div>
							<div style="width:33%;float:left;">
								<span>QQ号码：</span>
								<input type="text" id="qq" name="qq" value="${user.qq }" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>E-email地址：</span>
								<input type="text" id="mail" name="mail" value="${user.mail }" placeholder="请输入" >
							</div>
						</div>
						<div>
							<div style="width:33%;float:left;">
								<span>微信号：</span>
								<input type="text" id="weixinid" name="weixinid" value="${user.weixinid }" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>户口所在地：</span>
								<input type="text" id="birthplace" name="birthplace" value="${user.birthplace }" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>现居住地址：</span>
								<input type="text" id="address" name="address" value="${user.address }" placeholder="请输入" >
							</div>
						</div>
						<div>
							<div style="width:33%;float:left;">
								<span>推荐人：</span>
								<input type="text" id="referee" name="referee"  value="${user.referee }" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>能否接受外派：</span>
								<c:if test="${user.ifsend == 1}">
									 &nbsp;<input type="radio" id="ifsend" name="ifsend" value="1" checked="checked" /><span>能</span>
									 &nbsp;<input type="radio" id="ifsend" name="ifsend" value="2"/><span>否</span>
								</c:if>
								<c:if test="${user.ifsend == 2}">
									 &nbsp;<input type="radio" id="ifsend" name="ifsend" value="1"/><span>能</span>
									 &nbsp;<input type="radio" id="ifsend" name="ifsend" value="2" checked="checked"/><span>否</span>
								</c:if>
							</div>
							<div style="width:33%;float:left;">
								<span>外派地区：</span>
								<input type="text" id="sendaddress" name="sendaddress"  value="${user.sendaddress }" placeholder="请输入" >
							</div>
						</div>
					</div>
					
				 
				<div id="JKDiv_1" style="display:none;font-size:14px;margin:20px;">
						<div>
							<div style="width:33%;float:left;">
								<span>资料上传：</span> 
								<!-- 
								 <select id="datatype" name="datatype">
									<option value=""<c:if test="${userScan.type == ''}">selected</c:if>>请选择</option>
									<option value="1"<c:if test="${userScan.type == 1}">selected</c:if>>员工登记表</option>
									<option value="2"<c:if test="${userScan.type == 2}">selected</c:if>>入职简历</option>
									<option value="3"<c:if test="${userScan.type == 3}">selected</c:if>>入职体检表</option>
									<option value="4"<c:if test="${userScan.type == 4}">selected</c:if>>身份证</option>
									<option value="5"<c:if test="${userScan.type == 5}">selected</c:if>>学历</option>
									<option value="6"<c:if test="${userScan.type == 6}">selected</c:if>>合同</option>
									<option value="7"<c:if test="${userScan.type == 7}">selected</c:if>>上家公司离职证明</option>
									<option value="8"<c:if test="${userScan.type == 8}">selected</c:if>>离职证明审批</option>
									<option value="9"<c:if test="${userScan.type == 9}">selected</c:if>>离职证明</option>
                                    <option value="10"<c:if test="${userScan.type == 10}">selected</c:if>>面试记录</option>
									<option value="11"<c:if test="${userScan.type == 11}">selected</c:if>>银行卡</option>		
								</select>
								 -->
							</div>
							<div style="width:33%;margin-top:30px;position: absolute;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata1" href="javascript:;">
							         + 上传员工登记表<input size="100" type="file" name="datafile1" id="datafile1">
									</a>
									<div class="fileerrorTip_data1"></div>	
									<div class="showFileName_data1"></div>
								</div>
								<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 1}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
								</c:forEach>
							</div>
							<div style="width:33%;margin-top:90px;position: absolute;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata2" href="javascript:;">
							         + 上传入职简历<input size="100" type="file" name="datafile2" id="datafile2">
									</a>
									<div class="fileerrorTip_data2"></div>	
									<div class="showFileName_data2"></div>
								</div>
								<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 2}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
								</c:forEach>
							</div>
							<div style="width:33%;margin-top:150px;position: absolute;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata3" href="javascript:;">
							         + 上传入职体检表<input size="100" type="file" name="datafile3" id="datafile3">
									</a>
									<div class="fileerrorTip_data3"></div>	
									<div class="showFileName_data3"></div>
								</div>
								<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 3}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
								</c:forEach>
							</div>
							<div style="width:33%;margin-top:210px;position: absolute;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata4" href="javascript:;">
							         + 上传身份证<input size="100" type="file" name="datafile4" id="datafile4">
									</a>
									<div class="fileerrorTip_data4"></div>	
									<div class="showFileName_data4"></div>
								</div>
								<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 4}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
								</c:forEach>
							</div>
							<div style="width:33%;margin-top:270px;position: absolute;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata5" href="javascript:;">
							         + 上传学历<input size="100" type="file" name="datafile5" id="datafile5">
									</a>
									<div class="fileerrorTip_data5"></div>	
									<div class="showFileName_data5"></div>
								</div>
								<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 5}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
								</c:forEach>
							</div>
							<div style="width:33%;margin-top:330px;position: absolute;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata6" href="javascript:;">
							         + 上传合同<input size="100" type="file" name="datafile6" id="datafile6">
									</a>
									<div class="fileerrorTip_data6"></div>	
									<div class="showFileName_data6"></div>
								</div>
								<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 6}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
								</c:forEach>
							</div>
							<div style="width:33%;margin-top:390px;position: absolute;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata7" href="javascript:;">
							         + 上传上家公司离职证明<input size="100" type="file" name="datafile7" id="datafile7">
									</a>
									<div class="fileerrorTip_data7"></div>	
									<div class="showFileName_data7"></div>
								</div>
								<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 7}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
								</c:forEach>
							</div>
							<div style="width:33%;margin-top:450px;position: absolute;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata8" href="javascript:;">
							         + 上传离职证明审批<input size="100" type="file" name="datafile8" id="datafile8">
									</a>
									<div class="fileerrorTip_data8"></div>	
									<div class="showFileName_data8"></div>
								</div>
								<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 8}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
								</c:forEach>
							</div>
							<div style="width:33%;margin-top:510px;position: absolute;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata9" href="javascript:;">
							         + 上传离职证明<input size="100" type="file" name="datafile9" id="datafile9">
									</a>
									<div class="fileerrorTip_data9"></div>	
									<div class="showFileName_data9"></div>
								</div>
								<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 9}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
								</c:forEach>
							</div>
							<div style="width:33%;margin-top:570px;position: absolute;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata10" href="javascript:;">
							         + 上传面试记录<input size="100" type="file" name="datafile10" id="datafile10">
									</a>
									<div class="fileerrorTip_data10"></div>	
									<div class="showFileName_data10"></div>
								</div>
								<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 10}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
								</c:forEach>
							</div>
							<div style="width:33%;margin-top:630px;position: absolute;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata11" href="javascript:;">
							         + 上传银行卡<input size="100" type="file" name="datafile11" id="datafile11">
									</a>
									<div class="fileerrorTip_data11"></div>	
									<div class="showFileName_data11"></div>
								</div>
								<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 11}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
								</c:forEach>
							</div>
							<div style="width:33%;margin-top:210px;position: absolute;margin-left: 168px;">
								<div class="filebut">
									<a class="input-file input-fileup" id="butdata12" href="javascript:;">
							         + 上传身份证反面<input size="100" type="file" name="datafile12" id="datafile12">
									</a>
									<div class="fileerrorTip_data12"></div>	
									<div class="showFileName_data12"></div>
								</div>
							</div>
							<c:forEach items="${user.scanlist}" var="userScan">
									<c:if test="${userScan.path != '' && userScan.path !=null && userScan.type == 12}">
										<a onclick="lookimg('${userScan.path }');">查看</a>
									</c:if>
							</c:forEach>
						</div>
				</div> 
				<div id="JKDiv_2" style="display:none;font-size:14px;margin:20px;">
					<a onclick="JavaScript:addEducation()" style="margin-bottom: 26px;display:block;width:100px;height:24px;border:1px solid #CCC;background:#FFF;">添加毕业信息栏</a>
					<c:forEach items="${user.educationlist}" var="education">
						<input type="hidden" name="educid" value="${education.id }">
						<div style="height: 160px;" class="addEduDiv">
						<div>
						<div style="width:33%;float:left;">
							<span>毕业时间：</span>
							<input class="demo-input" value="${education.graduationtimeString }" id="graduationtime" name="graduationtime${education.id }">
							
						</div>
						<div style="width:33%;float:left;">
							<span>毕业院校：</span>
							<input type="text" id="universitie"  value="${education.universitie }" name="universitie${education.id }" placeholder="请输入" >
						</div>
						<div style="width:33%;float:left;">
							<span>毕业专业：</span>
							<input type="text" id="major"  value="${education.major }" name="major${education.id }" placeholder="请输入" >
						</div>
					</div>
					<div>
						<div style="width:23%;float:left;">
							<span>毕业证书编号：</span>
							<input type="text" id="educationNum"  value="${education.educationNum }" name="educationNum${education.id }" placeholder="请输入" >
						</div>
						<div style="width:10%;float:left;">
							<div class="filebut">
								<a class="input-file input-fileup" id="buteducation" href="javascript:;">
						         + 上传照片<input size="100" type="file" name="educationfile${education.id }" id="educationfile">
								</a>
							</div>
							<div class="fileerrorTip_education"></div>	
							<div class="showFileName_education" ></div>
							<c:if test="${education.educationPath != '' && education.educationPath !=null}">
								<a onclick="lookimg('${education.educationPath }');">查看</a>
							</c:if>
						</div>
					</div>
					<div>
						<div style="width:23%;float:left;">
							<span>学位证书编号：</span>
							<input type="text" id="academicdegreeNum"  value="${education.academicdegreeNum }" name="academicdegreeNum${education.id }" placeholder="请输入" >
						</div>
						<div style="width:10%;float:left;">
							<div class="filebut">
								<a style="float:left;" class="input-file input-fileup" id="butacademicdegree" href="javascript:;">
						         + 上传照片<input size="100" type="file" name="academicdegreefile${education.id }" id="academicdegreefile">
								</a>
							</div>
							<div class="fileerrorTip_academicdegree"></div>	
							<div class="showFileName_academicdegree"></div>
							<c:if test="${education.academicdegreePath != '' && education.academicdegreePath !=null}">
								<a onclick="lookimg('${education.academicdegreePath }');">查看</a>
							</c:if>
						</div>
					</div>
					</div>
					</c:forEach>
				</div> 
				<div id="JKDiv_3" style="display:none;font-size:14px;margin:20px;">
						<c:forEach items="${user.userWorkexperiencelist}" var="userWorkexperience">
							<div>
							<div style="width:33%;float:left;">
								<span>起止年月：</span>
								<input type="text" style="width:30%;" class="demo-input" placeholder="开始时间" value="${userWorkexperience.starttime }" id="starttime" name="starttime">-
                                <input type="text" style="width:30%;" class="demo-input" placeholder="结束时间" value="${userWorkexperience.endtime }" id="endtime" name="endtime">
								
							</div>
							<div style="width:33%;float:left;">
								<span>所在单位：</span>
								<input type="text" id="unitname" name="unitname" placeholder="请输入" value="${userWorkexperience.unitname }" >
							</div>
							<div style="width:33%;float:left;">
								<span>部门/职务：</span>
								<input type="text" id="wpositions" name="wpositions" placeholder="请输入" value="${userWorkexperience.positions }" >
							</div>
						</div>
						<div>
							<div style="width:33%;float:left;">
								<span>薪资：</span>
								<input type="text" id="salary" name="salary" placeholder="请输入" value="${userWorkexperience.salary }" >
							</div>
							<div style="width:33%;float:left;">
								<span>证明人：</span>
								<input type="text" id="witness" name="witness" placeholder="请输入" value="${userWorkexperience.witness }" >
							</div>
							<div style="width:33%;float:left;">
								<span>联系电话(必填)：</span>
								<input type="text" id="wmobile" name="wmobile" placeholder="请输入" value="${userWorkexperience.mobile }" >
							</div>
						</div>
						</c:forEach>
				</div> 
				<div id="JKDiv_4" style="display:none;font-size:14px;margin:20px;">
						<c:forEach items="${user.userEmergencycontactlist}" var="userEmergencycontact">
							<div>
							<div style="width:33%;float:left;">
								<span>姓名：</span>
								<input type="text" id="rname" name="rname" value="${userEmergencycontact.name }" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>与本人关系：</span>
								<input type="text" id="relationship" value="${userEmergencycontact.relationship }" name="relationship" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>联系电话(必填)：</span>
								<input type="text" id="rmobile" value="${userEmergencycontact.mobile }" name="rmobile" placeholder="请输入" >
							</div>
						</div>
						<div>
							<div style="width:33%;float:left;">
								<span>年龄：</span>
								<input type="text" id="age" value="${userEmergencycontact.age }" name="age" placeholder="请输入" >
							</div>
							<div style="width:33%;float:left;">
								<span>工作单位/职务：</span>
								<input type="text" id="positions" value="${userEmergencycontact.positions }" name="positions" placeholder="请输入" >
							</div>
						</div>						
						</c:forEach>
				</div> 
				<div id="JKDiv_5" style="display:none;font-size:14px;margin:20px;">
					<div>
						<div style="width:33%;float:left;">
							<span>工资卡银行：</span>
							<input type="text" id="bankname" name="bankname"  value="${user.userPrivate.bankname }" placeholder="请输入" >
						</div>
						<div style="width:33%;float:left;">
							<span>工资卡号：</span>
							<input type="text" id="bankcardno" name="bankcardno" value="${user.userPrivate.bankcardno }" placeholder="请输入" >
						</div>
						<div style="width:33%;float:left;">
							<div class="filebut">
								<a class="input-file input-fileup" id="butbank" href="javascript:;">
						         + 上传照片<input size="100" type="file" name="bankfile" id="bankfile">
								</a>
								请上传照片
								<div class="fileerrorTip_bank"></div>	
								<div class="showFileName_bank"></div>
							</div>
							<c:if test="${user.userPrivate.bankpath != '' && user.userPrivate.bankpath !=null}">
								<a onclick="lookimg('${user.userPrivate.bankpath}');">查看</a>
							</c:if>
						</div>
					</div>
					<div>
						<div style="width:33%;float:left;">
							<span>社保号：</span>
							<input type="text" id="securityno" name="securityno"  value="${user.userPrivate.securityno }" placeholder="请输入" >
						</div>
						<div style="width:33%;float:left;">
							<span>公积金：</span>
							<input type="text" id="accumulationno" name="accumulationno"  value="${user.userPrivate.accumulationno }" placeholder="请输入" >
						</div>
					</div>
				</div> 
				</form>
				<div class="row-fluid content-table">
					<table class="table  bootstrap-datatable" style=" border:none; border-spacing:0; border-collapse:collapse;margin:0;padding:0;margin-top: 688px;">
					  <tbody>
						<tr class="content-search" style="text-align: center;">
							<td colspan="6">
								<div>
									<button style="background-color: #dadada;color: #666;" type="button" onclick="reback();" id="output1">取消</button>
									<button class="but" id="saveUser" onclick="update();">保存</button>
								</div>
							</td>
						</tr>
					  </tbody>
				  </table>            
				</div>
			</div>
		</div>
</body>
 <script type="text/javascript">
	 $(function(){
		 var checkeds = $("#meidaHidden").val();
		 var checkArray =checkeds.split(",");
		 var checkBoxAll = $("input[name='language']");
		 for(var i=0;i<checkArray.length;i++){
			 $.each(checkBoxAll,function(j,checkbox){
				 var checkValue=$(checkbox).val();
				 if(checkArray[i]==checkValue){
					 $(checkbox).attr("checked",true);
				 }
			 })
		 }
	 });
 </script>
</html>
